<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>hg.app.pngcanvas</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>hg.app.pngcanvas</h1>
<p>
Simple PNG Canvas for Python
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>__author__</td></tr><tr><td>__contributors__</td></tr><tr><td>__copyright__</td></tr><tr><td>__version__</td></tr><tr><td>signature</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#PNGCanvas">PNGCanvas</a></td>
<td></td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr>
<td><a href="#blend">blend</a></td>
<td></td>
</tr><tr>
<td><a href="#gradientList">gradientList</a></td>
<td></td>
</tr><tr>
<td><a href="#grayscale">grayscale</a></td>
<td></td>
</tr><tr>
<td><a href="#intensity">intensity</a></td>
<td></td>
</tr>
</table>
<hr /><hr />
<a NAME="PNGCanvas" ID="PNGCanvas"></a>
<h2>PNGCanvas</h2>

<h3>Derived from</h3>
None
<h3>Class Attributes</h3>
<table>
<tr><td>c</td></tr><tr><td>f</td></tr><tr><td>height</td></tr><tr><td>width</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#PNGCanvas.__init__">PNGCanvas</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas._rectHelper">_rectHelper</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.blendRect">blendRect</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.chunks">chunks</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.copyRect">copyRect</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.defilter">defilter</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.dump">dump</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.filledRectangle">filledRectangle</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.line">line</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.load">load</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.pack_chunk">pack_chunk</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.point">point</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.polyline">polyline</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.rectangle">rectangle</a></td>
<td></td>
</tr><tr>
<td><a href="#PNGCanvas.verticalGradient">verticalGradient</a></td>
<td></td>
</tr>
</table>
<a NAME="PNGCanvas.__init__" ID="PNGCanvas.__init__"></a>
<h4>PNGCanvas (Constructor)</h4>
<b>PNGCanvas</b>(<i>width, height, bgcolor=[0xff, 0xff, 0xff, 0xff], color=[0, 0, 0, 0xff]</i>)
<a NAME="PNGCanvas._rectHelper" ID="PNGCanvas._rectHelper"></a>
<h4>PNGCanvas._rectHelper</h4>
<b>_rectHelper</b>(<i>x0, y0, x1, y1</i>)
<a NAME="PNGCanvas.blendRect" ID="PNGCanvas.blendRect"></a>
<h4>PNGCanvas.blendRect</h4>
<b>blendRect</b>(<i>x0, y0, x1, y1, dx, dy, destination, alpha=0xff</i>)
<a NAME="PNGCanvas.chunks" ID="PNGCanvas.chunks"></a>
<h4>PNGCanvas.chunks</h4>
<b>chunks</b>(<i>f</i>)
<a NAME="PNGCanvas.copyRect" ID="PNGCanvas.copyRect"></a>
<h4>PNGCanvas.copyRect</h4>
<b>copyRect</b>(<i>x0, y0, x1, y1, dx, dy, destination</i>)
<a NAME="PNGCanvas.defilter" ID="PNGCanvas.defilter"></a>
<h4>PNGCanvas.defilter</h4>
<b>defilter</b>(<i>cur, prev, filtertype, bpp=3</i>)
<a NAME="PNGCanvas.dump" ID="PNGCanvas.dump"></a>
<h4>PNGCanvas.dump</h4>
<b>dump</b>(<i></i>)
<a NAME="PNGCanvas.filledRectangle" ID="PNGCanvas.filledRectangle"></a>
<h4>PNGCanvas.filledRectangle</h4>
<b>filledRectangle</b>(<i>x0, y0, x1, y1</i>)
<a NAME="PNGCanvas.line" ID="PNGCanvas.line"></a>
<h4>PNGCanvas.line</h4>
<b>line</b>(<i>x0, y0, x1, y1</i>)
<a NAME="PNGCanvas.load" ID="PNGCanvas.load"></a>
<h4>PNGCanvas.load</h4>
<b>load</b>(<i>f</i>)
<a NAME="PNGCanvas.pack_chunk" ID="PNGCanvas.pack_chunk"></a>
<h4>PNGCanvas.pack_chunk</h4>
<b>pack_chunk</b>(<i>tag, data</i>)
<a NAME="PNGCanvas.point" ID="PNGCanvas.point"></a>
<h4>PNGCanvas.point</h4>
<b>point</b>(<i>x, y, color=None</i>)
<a NAME="PNGCanvas.polyline" ID="PNGCanvas.polyline"></a>
<h4>PNGCanvas.polyline</h4>
<b>polyline</b>(<i>arr</i>)
<a NAME="PNGCanvas.rectangle" ID="PNGCanvas.rectangle"></a>
<h4>PNGCanvas.rectangle</h4>
<b>rectangle</b>(<i>x0, y0, x1, y1</i>)
<a NAME="PNGCanvas.verticalGradient" ID="PNGCanvas.verticalGradient"></a>
<h4>PNGCanvas.verticalGradient</h4>
<b>verticalGradient</b>(<i>x0, y0, x1, y1, start, end</i>)

<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="blend" ID="blend"></a>
<h2>blend</h2>
<b>blend</b>(<i>c1, c2</i>)

<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="gradientList" ID="gradientList"></a>
<h2>gradientList</h2>
<b>gradientList</b>(<i>start, end, steps</i>)

<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="grayscale" ID="grayscale"></a>
<h2>grayscale</h2>
<b>grayscale</b>(<i>c</i>)

<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="intensity" ID="intensity"></a>
<h2>intensity</h2>
<b>intensity</b>(<i>c, i</i>)

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>